package com.fh.lib_base.data.source

import com.fh.lib_base.base.BaseBean
import com.fh.lib_base.data.bean.*
import io.reactivex.Observable

/**
 * @author Alwyn
 * @Date 2020/7/22
 * @Description
 */
interface HttpDataSource {

    fun userLogin(account: String, pwd: String): Observable<BaseBean<UserBean>>

    //获取搜索页面轮播图数据
    fun getSearchBannerData(): Observable<BaseBean<List<BannerBean>>>
    //获取热门城市
    fun getHotCityListData(): Observable<BaseBean<ArrayList<CityBean>>>
    //获取所有城市
    fun getAllCityListData(): Observable<BaseBean<ArrayList<CitySortBean>>>

    //获取城市搜索结果
    fun getCitySearchResultListData(keyword: String): Observable<BaseBean<ArrayList<CityBean>>>
}